from selenium.webdriver.common.by import By

from base.element_base import ElementBase


class IndexPage(ElementBase):
    '''首页页面类'''

    def __init__(self):
        super().__init__()

        self.ele_login = (By.LINK_TEXT, '登录')

    def jump_login_page(self):
        self.click_element(self.posit_element(self.ele_login))
